﻿Public Class Settings

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        apply()
    End Sub
    Public Sub apply()
        My.Settings.Volume = NumericUpDown1.Value
        My.Settings.Save()
        'Game.AxWindowsMediaPlayer1.settings.volume = My.Settings.Volume
    End Sub

    Private Sub Settings_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        NumericUpDown1.Value = My.Settings.Volume
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        apply()
        Me.Hide()
    End Sub
End Class